<{include file="public/header.html"}>

<div class="container">
    	<form action="/garage/image/action/add/id/<{$garage_id}>" method="post" name="login" enctype="multipart/form-data" >
    		<input type="hidden" id="act" name="act" value="1" />
    		<input type="hidden" id="garage_id" name="garage_id" value="<{$garage_id}>" />
        	<div class="signup">
                <div class="signup-title"><span>Add image</span></div>
                <div class="form-upload">
                	<div class="row">Maximum image size you can upload is 5M</div>
                	<div class="row">
	                    <input type="file" name="image" />
	                    <input type="image" src="<{$smarty.const.STATIC_COMPONENT_URL}>images/btnUpload.jpg" />
                    </div>
                </div>
        </form>
                <br/><br/>
                <table border="1" cellpadding="0" cellspacing="0" bgcolor="#d4ffd4" class="upload">
					<tr class="title">	
						<td width="100">ID</td>
						<td width="200">Category</td>
						<td width="300">Image</td>
						<td>Function</td>
					</tr>
					<{while $image->fetch()}>
					<tr>	
						<td><{$image->id}></td>
						<td><span><{$image->garage_title}></span></td>
						<td><img src="<{$smarty.const.STATIC_COMPONENT_URL}>images/garage/<{$image->name}>" width="150" height="100" /></td>
						<td align="center">								
							<a onclick="return confirm('<{#_LB_DELETE_CONFIRM#}>')" href="<{$smarty.const.APPLICATION_URL}>/garage/image/action/delete/id/<{$image->id}>" title="delete image" >
								<img border=0 alt="delete_small.png" src="<{$smarty.const.STATIC_COMPONENT_URL}>images/delete_small.png"/>						
							</a>
						</td>
					</tr>
					<{/while}>
				</table>
            </div>
    </div><!--end container-->
    <div class="clear"></div>
<{include file="public/footer.html"}>